package backend.dal;

import backend.dal.hibernate.HibernateDAOFactory;
import backend.dal.jdbc.JdbcDAOFactory;
import backend.util.ConnectionType;

public abstract class DAOFactory {

	public static DAOFactory getInstance(ConnectionType ct) {
		switch (ct) {
		case JDBC:
			return new JdbcDAOFactory();
		case HIBERNATE:
			return new HibernateDAOFactory();
		default:
			return new JdbcDAOFactory();
		}

	}

	public abstract UserDAO getUserDAO();
}
